QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Camera Placement Structure

You use a camera placement structure to get or set information about the location and orientation of a camera. A camera placement structure is defined by the TQ3CameraPlacement data type.

typedef struct TQ3CameraPlacement {
    TQ3Point3D                          cameraLocation;
    TQ3Point3D                          pointOfInterest;
    TQ3Vector3D                         upVector;
} TQ3CameraPlacement;
cameraLocation
The location of the camera, in world-space coordinates.
pointOfInterest
The camera's point of interest (that is, the point at which the camera is aimed), in world-space coordinates.
upVector
The up-vector of the camera, which specifies the orientation of the camera. It must be normalized and perpendicular to the viewing direction. The up-vector of a camera is mapped to the y axis of the view plane.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |